<template>
  <div class="home">
    <el-container>
      <el-header>
        <Vheader></Vheader>
      </el-header>
      <el-container>
        <el-aside :width="isCollapse ? '64px' : '200px' ">
          <Vaside></Vaside>
        </el-aside>
        <el-main>Main</el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
//引入头部组件
import Vheader from "@/views/Vheader";
//引入侧边栏组件
import Vaside from "@/views/Vaside";
//引入内容组件
import Vmain from "@/views/Vmain";

export default {
  name: "Home",
  components: {
    Vheader,
    Vaside,
    Vmain
  },
  computed: {
    isCollapse(){
      return this.$store.state.isCollapse
    }
  },
};
</script>
<style lang="scss">
.home,.el-container{
  height: 100%;
}
.el-header{
  padding: 0 !important
}
.el-header{
  line-height: 60px;
}
</style>
